package com.zqweb.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zqweb.common.utils.PageUtils;
import com.zqweb.gulimall.product.entity.AttrEntity;
import com.zqweb.gulimall.product.vo.AttrRelationVo;
import com.zqweb.gulimall.product.vo.AttrRespVo;
import com.zqweb.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author zq
 * @email zq@gmail.com
 * @date 2021-11-26 18:38:54
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetail(AttrVo attrVo);

    PageUtils baseQueryPage(Map<String, Object> params, Long cateId,String attrType);

    AttrRespVo getByIdWithDetails(Long attrId);

    void updateDetailsById(AttrVo attr);

    void deleteRelations(AttrRelationVo[] relationVos);

    PageUtils listNoRelation(Map<String, Object> params, Long groupId);

    List<Long> getSearchAttrIds(List<Long> attrIds);

}

